package cn.iocoder.yudao.module.cont.enums.base;

import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.util.Arrays;

/**
 * Cont的合同类型
 *
 * @author haiyun
 */
@RequiredArgsConstructor
@Getter
public enum ContFkfsEnum implements IntArrayValuable {
    FKFS_YF(0, "月付"),
    FKFS_JF(10, "季付"),
    FKFS_NF(20, "年付");


    private final Integer status;
    private final String name;

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(ContFkfsEnum::getStatus).toArray();

    @Override
    public int[] array() {
        return ARRAYS;
    }

}
